<!DOCTYPE html>
<html lang="zh_CN">
<head>
  <script>if (window !== top) top.location.replace(location.href);</script>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="icon" href="${ctxPath}/assets/images/favicon.ico">
  <title>哈尔滨麻将快速计算平台</title>
  <link rel="stylesheet" href="${ctxPath}/assets/libs/layui/css/layui.css"/>
  <link rel="stylesheet" href="${ctxPath}/assets/module/admin.css">
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <style type="text/css">
    .circleImg{
      border-radius: 130px;
      width:260px;
      height:260px;
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
      margin-top: 40%;
    }

  </style>
</head>
<body>

  <!-- 主体部分 -->
  <div><img class="circleImg" src="${ctxPath}/assets/images/cat.jpg"/>
    <button id="start" type="button" class="layui-btn layui-btn-lg layui-btn-primary layui-btn-radius"
            style=" width: 30%;height: 5%;position: absolute;left: 0;right: 0;margin: auto;margin-top: 75%">开始麻将吧！
    </button>
  </div>

<script src="${ctxPath}/assets/libs/layui/layui.js"></script>
<script src="${ctxPath}/assets/js/common.js"></script>
<script>
  layui.use(['layer', 'element', 'admin', 'index', 'laytpl', 'element', 'notice', 'xnUtil'], function () {
    var $ = layui.jquery;
    var admin = layui.admin;
    var index = layui.index;
    var laytpl = layui.laytpl;
    var element = layui.element;
    var xnUtil = layui.xnUtil;

    $("#start").click(function() {
      location.href = getProjectUrl() + "start";
    });

    //缓存字典

/*    // ajax渲染侧边栏
    admin.req(getProjectUrl() + 'getLoginUser', function(res){
      //将用户信息缓存到本地
      layui.data(admin.setter.tableName, {key: 'loginUser', value: res.data});

      //开启webSocket，一定要放在用户信息缓存后，否则取的还是上次的登录信息
      xnUtil.openWebSocket();
      //渲染顶部系统栏
      laytpl(topNav.innerHTML).render(res.data.apps, function (html) {
        $('#snowy-nav-top-box').append(html);
      });

      //渲染左侧菜单
      laytpl(sideNav.innerHTML).render(res.data.menus, function (html) {
        $('.layui-side-scroll').html(html);
        element.render('nav');
        // 加载页面
        index.loadHome({
          menuPath: getProjectUrl() + 'other/welcomeHtml',
          menuName: '<i class="layui-icon layui-icon-home"></i>',
          // 刷新后默认打开上次的页签
          loadSetting: true,
          // 并且只打开最后一个页签
          onlyLast: true
        });
      });
    });*/
  });
</script>
</body>
</html>
